package com.jiuli_travel.attraction_service.service;

import com.jiuli_travel.attraction_service.model.dto.attraction_comment.AttractionCommentInsertRequest;
import com.jiuli_travel.attraction_service.model.dto.attraction_comment.AttractionCommentQueryRequest;
import com.jiuli_travel.attraction_service.model.entity.AttractionComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiuli_travel.attraction_service.model.vo.AttractionCommentVO;
import com.jiuli_travel.utils.PageDTO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiuli
 * @since 2024-04-01
 */
public interface IAttractionCommentService extends IService<AttractionComment> {
    /**
     * 分页获取某个景区的评论信息（底层的回复也是分页查询）
     */
    public PageDTO<AttractionCommentVO> selectInitAttractionCommentsByPage(Long attractionId);

    /**
     * 分页获取子类的评论信息
     */
    public PageDTO<AttractionCommentVO> selectCommentsByPage(AttractionCommentQueryRequest attractionCommentQueryRequest);

    /**
     * 发表个人景区评论
     */
    public void publishAttractionComment(AttractionCommentInsertRequest attractionCommentInsertRequest);

    /**
     * 删除个人景区评论（一条）
     */
    public void delAttractionComment(Long attractionCommentId);
}
